<template>
	<view class="column bg-white with-100"><yzb-terms :terms="aboutData"></yzb-terms></view>
</template>

<script>
import yzbTerms from '@/components/yzb/yzb-terms.vue';
export default {
	components: {
		yzbTerms
	},
	data() {
		return {
			aboutData: []
		};
	},

	onLoad(option) {
		this.getAbouts();
	},

	methods: {
		// 获取关于我们
		async getAbouts() {
			let data = await this.$apis.getHelpDetail({ categoryCode: 'promotion' });
			console.log('data===', data);
			if (data) {
				this.aboutData = data;
				let desc = data.content.replace(/\<p/gi, '<p style="padding-bottom:5px;line-height:24px;color:#333333;font-size: 14px;"');
				this.aboutData.content = desc.replace(/\<img/gi, '<img style="width:100%;height:auto;display:block;" ');
			}
		}
	}
};
</script>

<style></style>
